/*---------------------------------------------------------------------------------

Render a 16 bit per pixel bitmap to the screen

---------------------------------------------------------------------------------*/
#include <nds.h>
#include <drunkenlogo.h>

int main(void) {

	videoSetMode(MODE_5_2D);
	vramSetBankA(VRAM_A_MAIN_BG);

	int bg = bgInit(3, BgType_Bmp16, BgSize_B16_256x256, 0,0);
	dmaCopy(drunkenlogoBitmap, bgGetGfxPtr(bg), drunkenlogoBitmapLen); //Displays/decompresses top image

	while(1) 
	{
		swiWaitForVBlank();
	}

	return 0;
}
